package com.woniuxy.demo.epai.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.*;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author epai
 * @since 2021-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("e_artical")
@Entity
@Table(name = "e_artical")
public class Artical implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 时间
     */
    private Date time;

    /**
     * 评论
     */
    private String comments;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 图片
     */
    private String total;

    /**
     * 添加时间
     */
    private Date rawAddTime;

    /**
     * 更新时间
     */
    private Date rawUpdateTime;

    /**
     * 类型
     */
    private Integer type;


}
